package com.example.common.base;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;

/**
 * @author skygge
 * @date 2020/7/30.
 * GitHub：javofxu@github.com
 * email：skygge@yeah.net
 * description：包含ViewDataBinding层的基类
 */
public class BaseBindActivity<B extends ViewDataBinding> extends BaseActivity{

    protected B mDBind;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getLayoutId());
        mDBind = DataBindingUtil.setContentView(this, getLayoutId());
        initialization();
    }
}
